﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InCalendarSum.aspx.cs" Inherits="ZX.WebApp.Crm.Hodometer.InCalendarSum" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/container/assets/skins/sam/container.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/button/assets/skins/sam/button.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/layout/assets/skins/sam/layout.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/resize/assets/skins/sam/resize.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/yui_2.9.0/build/datatable/assets/skins/sam/datatable.css" />
    <link href="../../Styles/base.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.json-2.2.js" type="text/javascript"></script>
    <script src="../../Scripts/Jquery.form.js" type="text/javascript"></script>
    <script src="../../Scripts/CombinButton.js" type="text/javascript"></script>
    <link href="../../Styles/default/calendar.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery.calendar.js" type="text/javascript"></script>
    <script src="../../Scripts/extend.validate.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/element/element-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/datasource/datasource-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/json/json-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/connection/connection-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/get/get-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/dragdrop/dragdrop-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/datatable/datatable-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/paginator/paginator-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/layout/layout-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/button/button-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/container/container-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/event-delegate/event-delegate-min.js"></script>
    <link href="../../Styles/extendTable.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
        function AlertResult(obj) {
            if (obj) {
                alert("操作成功！");
                parent.NeedRefreshPage.myrefresh();
            }
            else
            { alert("操作失败！") }
            window.parent.$("#tabs").tabs('close', '讲师内训总结');
        }
    </script>
    <style type="text/css">
         .tabck
         {
              width:100%;
         }
          /&nbsp;* Table样式 &nbsp;*/
        .tableContent
        {
            width: 100%;  font-size:12px;
            color:
            border-collapse: collapse;
        }
        .tableContent th
        {
            border: solid 1px #D4DBE2;
            font-weight: bold;
            background-color: #F2F8FF;
            white-space: nowrap;
            line-height: 28px;
            text-align: left; padding-left:3px;
        }
        .tableContent td
        {
            border: solid 1px #D4DBE2;
            background-color: #F2F8FF;
            line-height: 28px;
            text-align: left;
            padding-left:3px;
        }
        .textbox
        {
            border-bottom: black 1px solid;
            border-top-style: none;
            border-right-style: none;
            border-left-style: none;
            background-color: white;
            overflow:hidden;
            height: 100%;
            width:98%; 
        }
         .style6
        {
           border-bottom: black 1px solid;
           border-top-style: none;
           border-right-style: none;
           border-left-style: none;
           background-color: white;
           overflow:hidden;
           height: 100%;
           width: 98%;
        }
    </style>
</head>
<body class="yui-skin-sam">
    <form id="form1" runat="server">
    <div>
        <asp:HiddenField ID="hdfid" runat="server" />
        <table class="tableContent">
            <tr>
                 <td>到达企业日期</td>  <td><input type="text" id="lblArrive" class="textbox" style="width: 75px;" runat="server" /></td><td colspan="3" style=" text-align:center;  font-size:large; font-weight:bold;">
                    内训总结</td>
            </tr>
            <tr>
                <td >
                    培训日期</td>
                <td colspan="2">
                    <asp:Label ID="LabSEdate" runat="server" class="textbox" Text=""></asp:Label></td>
                <td>
                    培训讲师</td>  <td><asp:Label ID="LabTeachName" class="textbox" runat="server" Text=""></asp:Label></td> 
            </tr>
            <tr>
                <td style=" width:10%;">
                    内训助教</td>
                <td colspan="4"><input type="hidden" id="PM" runat="server" />
                        <input type="text" id="txtPM" runat="server" disabled="disabled" class="textbox" dtype="Z" style="width: 150px; background: #e7eaf4;" />
                        <button id="btnPM" name="R" runat="server" type="button" class="btnCheck"
                            style="width: 50px;height:28px;">
                            选择</button>
                                              </td>
            </tr>
            <tr>
                <td>
                    自我评价</td>
                <td colspan="4">
                    <asp:TextBox ID="txtAppraiseoneself" runat="server" title="长度不超过150个汉字" TextMode="MultiLine" Rows="2"  onKeyDown="showSetNum('txtAppraiseoneself','Span2',150)" onKeyUp="showSetNum('txtAppraiseoneself','Span2',150)" CssClass="textbox"></asp:TextBox><span id="Span2" class="span_font"></span></asp:TextBox><span style="color: Red">&nbsp;*</span></td>
            </tr>
            <tr>
                <td>
                    培训背景</td>
                <td colspan="4">
                    <asp:TextBox ID="txtTrainBackground" runat="server" Rows="6" TextMode="MultiLine" title="长度不超过400个汉字" onKeyDown="showSetNum('txtTrainBackground','spBg',400)" onKeyUp="showSetNum('txtTrainBackground','spBg',400)" CssClass="textbox"></asp:TextBox><span id="spBg" class="span_font"></span><span style="color: Red">&nbsp;*</span></td>
            </tr>
            <tr>
                <td rowspan="2">
                    学员状况</td>
                <td style="width:10%;">
                    人数</td>
                <td >
                    <asp:TextBox ID="txtPersonSum" runat="server" onkeyup="this.value=this.value.replace(/\D/g,'')"
                                        onafterpaste="this.value=this.value.replace(/\D/g,'')" Width="30%" CssClass="textbox"></asp:TextBox><span style="color: Red">&nbsp;*</span></td>
           
                <td>
                    文化程度<span style="color: Red">&nbsp;*</span></td>
                <td >
                         <asp:RadioButtonList ID="rdbwh" runat="server" RepeatDirection="Horizontal"
                          DataSourceID="wh" DataTextField="PhraseValue" DataValueField="PhraseID" AppendDataBoundItems="True">
                         </asp:RadioButtonList>
                         <asp:ObjectDataSource ID="wh" runat="server" SelectMethod="getPhraseList" TypeName="ZX.CRM.Bussiness.GetDatPhrase"> 
                          <SelectParameters ><asp:Parameter  Name="classid" Type="string" DefaultValue="207D1EF5-9F60-4E26-A2D5-8368A945BD5D"/></SelectParameters>
                         </asp:ObjectDataSource>
                     </td>
            </tr>
            <tr>
                <td>
                    性别结构<span style="color: Red">&nbsp;*</span></td>
                <td >
                     <asp:RadioButtonList ID="rdbxb" runat="server" RepeatDirection="Horizontal"
                          DataSourceID="xb" DataTextField="PhraseValue" DataValueField="PhraseID" AppendDataBoundItems="True">
                         </asp:RadioButtonList>
                         <asp:ObjectDataSource ID="xb" runat="server" SelectMethod="getPhraseList" TypeName="ZX.CRM.Bussiness.GetDatPhrase"> 
                          <SelectParameters ><asp:Parameter  Name="classid" Type="string" DefaultValue="369ADAEC-47D2-4681-B9A2-F59321355B96"/></SelectParameters>
                         </asp:ObjectDataSource>
                     </td>
            
                <td>
                    职位结构<span style="color: Red">&nbsp;*</span></td>
                <td >
                     <asp:RadioButtonList ID="rdbzw" runat="server" RepeatDirection="Horizontal" 
                          DataSourceID="zw" DataTextField="PhraseValue" DataValueField="PhraseID" AppendDataBoundItems="True">
                         </asp:RadioButtonList>
                         <asp:ObjectDataSource ID="zw" runat="server" SelectMethod="getPhraseList" TypeName="ZX.CRM.Bussiness.GetDatPhrase"> 
                          <SelectParameters ><asp:Parameter  Name="classid" Type="string" DefaultValue="1E6D2F43-2E26-4CF5-93F0-0A48EB1DB75F"/></SelectParameters>
                         </asp:ObjectDataSource>
                     </td>
            </tr>
            <tr>
                <td>
                    训前沟通</td>
                <td colspan="4">
                    <asp:TextBox ID="txtFrontCommunicate" Rows="6" runat="server" CssClass="textbox" title="长度不超过400个汉字" onKeyDown="showSetNum('txtFrontCommunicate','spContent',400)" onKeyUp="showSetNum('txtFrontCommunicate','spContent',400)" TextMode="MultiLine" ></asp:TextBox><span id="spContent" class="span_font"></span><span style="color: Red">&nbsp;*</span></td>
            </tr>
            <tr>
                <td>
                    课程设计</td>
                <td  colspan="4"><div id="divkcsj">
                    <asp:HiddenField ID="hdfkcsj" runat="server" />
                    <asp:HiddenField ID="hdfbegindate" runat="server" />
                    <table id="kctb1" class="tabck" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#000000" bgcolor="#F2F2F2">
                        <tr>
                            <td rowspan="3" style=" width:4%;">
                                第<br />
                                1<br />
                                天</td>
                            <td style=" width:6%;">
                                主题</td>
                            <td>
                                <textarea id="taSubject1" runat="server" rows="2" title="长度不超过100个汉字"   onKeyDown="showSetNum('taSubject1','spSubs',100)" onKeyUp="showSetNum('taSubject1','spSubs',100)" class="style6" ></textarea> <span id="spSubs" class="span_font"></span></td>
                        </tr>
                        <tr>
                            <td>
                                活动</td>
                            <td>
                                <textarea id="taTContent1" runat="server" rows="1" title="长度不超过40个汉字"   onKeyDown="showSetNum('taTContent1','spTcont',40)" onKeyUp="showSetNum('taTContent1','spTcont',40)"  class="style6" ></textarea><span id="spTcont" class="span_font"></span></td>  
                        </tr>
                        <tr>
                            <td>
                                视频</td>
                            <td>
                                <textarea id="taVideo1" runat="server" rows="1" title="长度不超过40个汉字"   onKeyDown="showSetNum('taVideo1','spVideo',40)" onKeyUp="showSetNum('taVideo1','spVideo',40)"   class="style6" ></textarea><span id="spVideo" class="span_font"></span></td>  
                        </tr>
                        <tr>
                            <td>
                      <img id="imgadd1" src="style/add.gif" title="添加日课程项" style="float: left; 
                        cursor: pointer" alt="添加日课程项" onclick="return AddRow(this);" />
                    <img id="imgdel1" src="style/cancel.gif" title="删除日课程项" style="float: right; 
                        cursor: pointer" alt="删除日课程项" onclick="return DeleteRow(this);" /></td>
                            <td>
                                案例</td>
                            <td>
                               <textarea id="taTCase1" Rows="6"  runat="server" title="长度不超过400个汉字"   onKeyDown="showSetNum('taTCase1','spTcase',400)" onKeyUp="showSetNum('taTCase1','spTcase',400)" class="style6" ></textarea>  <span id="spTcase" class="span_font"></span></td>   
                        </tr>
                    </table></div>
                </td>
            </tr>
            <tr>
                <td rowspan="2">
                    本次内训优点与需改进地方</td>
                <td>
                    优点</td>
                <td colspan="3">
                    <asp:TextBox ID="txtExcellence" CssClass="textbox" title="长度不超过100个汉字"  MaxLength="100"  runat="server"></asp:TextBox><span style="color: Red">&nbsp;*</span></td>
            </tr>
            <tr>
                <td>
                    需改进地方</td>
                <td colspan="3">
                  <asp:TextBox ID="txtBlemish" CssClass="textbox" MaxLength="400" title="长度不超过400个汉字" Rows="6" runat="server" onKeyDown="showSetNum('txtBlemish','Span1',400)" onKeyUp="showSetNum('txtBlemish','Span1',400)" TextMode="MultiLine" ></asp:TextBox><span id="Span1" class="span_font"></span><span style="color: Red">&nbsp;*</span></td>
            </tr>
            <tr>
                <td>
                    内训心得</td>
                <td colspan="4">
                    <asp:TextBox ID="txtStudyGain" runat="server" title="长度不超过400个汉字" Rows="6"  onKeyDown="showSetNum('txtStudyGain','spSg',400)" onKeyUp="showSetNum('txtStudyGain','spSg',400)" CssClass="textbox" TextMode="MultiLine" ></asp:TextBox><span id="spSg" class="span_font"></span><span style="color: Red">&nbsp;*</span></td>
            </tr>
            <tr>
                <td rowspan="3">
                    助教服务</td>
                <td>
                    课前沟通</td>
                <td>
                    <asp:TextBox ID="txtAssistantCommunicate" title="长度不超过50个汉字" MaxLength="50"    CssClass="textbox" runat="server"></asp:TextBox></td>
                <td style=" width:15%;">
                    音响效果</td>
                <td>
                    <asp:TextBox ID="txtAssistantSound" runat="server" title="长度不超过50个汉字" MaxLength="50"   CssClass="textbox"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    主持流畅度</td>
                <td>
                    <asp:TextBox ID="txtAssistantEasy" runat="server" title="长度不超过50个汉字" MaxLength="50"  CssClass="textbox"></asp:TextBox></td>
                <td>
                    会场是否符合要求</td>
                <td>
                    <asp:TextBox ID="txtAssistantMeetingPlace" runat="server" title="长度不超过50个汉字" MaxLength="50"   CssClass="textbox"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    氛围调动能力</td>
                <td>
                    <asp:TextBox ID="txtAssistantRemove" runat="server" title="长度不超过50个汉字" MaxLength="50"   CssClass="textbox"></asp:TextBox></td>
                <td>
                    助教流程严谨程度</td>
                <td>
                    <asp:TextBox ID="txtAssistantFlow" runat="server" title="长度不超过50个汉字" MaxLength="50"  CssClass="textbox"></asp:TextBox></td>
            </tr>
             <tr>
                <td>
                    备注</td>
                <td colspan="5">
                    <asp:TextBox ID="txtExplain" runat="server" title="长度不超过200个汉字" Rows="3" onKeyDown="showSetNum('txtExplain','SpanExplain',200)" onKeyUp="showSetNum('txtExplain','SpanExplain',200)" CssClass="textbox" TextMode="MultiLine" ></asp:TextBox><span id="SpanExplain" class="span_font"></span></td>
           
                   
            </tr>
            <tr>
              
                <td colspan="5" style="text-align:center">
                  <asp:ImageButton ID="btnSave" ImageUrl="../../Images/Peixun/save.bmp"  OnClientClick=" return SaveBefore();" OnClick="btnSave_OnClick" runat="server" />
                </td>
             
            </tr> 
            <tr style='display:<%=(getView=="check")?"":"none"%>'>
            <td>
                   <span style="color:Red"> 评论内容</span></td>
                <td colspan="3" style="text-align:center">
                     <asp:TextBox ID="txtComment" runat="server" title="长度不超过200个汉字" Rows="4" onKeyDown="showSetNum('txtComment','SpanComment',200)" onKeyUp="showSetNum('txtComment','SpanComment',200)" CssClass="textbox" TextMode="MultiLine" ></asp:TextBox><span id="SpanComment" class="span_font"></span>
                </td>
                <td> <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager> 
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">  <ContentTemplate>
                <asp:Button ID="btnComment" Text="我要评论" CssClass="btnCheck" Width="78px" Height="27px"  runat="server" OnClick="btnComment_OnClick"> </asp:Button> <span style="color:Red">已有(<%=getNum%>)条评论</span>
                      </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnComment" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>   </td>
            </tr>
        </table>
        <asp:Repeater ID="rptComment" runat="server" Visible="false">
        <HeaderTemplate>
        <table class="tableContent">
        </HeaderTemplate>
        <ItemTemplate>
              <tr><td>&nbsp;评论人：<%#getTeacher(Eval("TeachID")) %></td><td>评论时间：<%#getDateTime(Eval("AddTime"))%></td></tr>
              <tr><td colspan="2">&nbsp;内容：<%#Eval("ComContent") %></td></tr>
              <tr><td colspan="2">&nbsp;</td></tr>
         </ItemTemplate>
         <FooterTemplate>
         </table>
         </FooterTemplate>
        </asp:Repeater>
        <asp:HiddenField ID="tmpUser" runat="server" />
         <div id="dialog1" class="yui-pe-content">
            <div class="hd">
                信息选择</div>
            <div class="bd">
                <iframe id="EditUIWindow1" frameborder="0" src="" style="width: 100%; height: 100%;
                    margin: 0px; padding: 0px;"></iframe>
            </div>
        </div>
       
    </div>
    </form>
</body> 
<script language="javascript" type="text/javascript">
            function AddRow(obj) {
                var seq = parseInt(obj.id.substring(6)) + 1;
                CreatTable(seq);
            }
            function CreatTable(seq) {
                var newtab = '<table id="kctb' + seq + '" class="tabck" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#000000" bgcolor="#F2F2F2">'
                        + '<tr>'
                            + '<td rowspan="3" style=" width:4%;">'
                               + '第<br />'
                                + '' + seq + '<br />'
                               + ' 天</td>'
                           + '<td style=" width:6%;">'
                             + '  主题</td>'
                            + '<td>'
                              + ' <textarea id="taSubject' + seq + '" rows="1"  class="style6" ></textarea></td>'
                        + '</tr>'
                        + '<tr>'
                          + ' <td>'
                           + '活动</td>'
                           + '<td>'
                             + ' <textarea id="taTContent' + seq + '" rows="1"  class="style6" ></textarea></td>'
                       + '</tr>'
                        + '<tr>'
                          + '<td>'
                             + '视频</td>'
                           + '<td>'
                                + '<textarea id="taVideo' + seq + '" rows="1"  class="style6" ></textarea></td>'
                        + '</tr>'
                        + '<tr>'
                           + '<td>'
                     + '<img id="imgadd' + seq + '" src="style/add.gif" title="添加日课程项" style="float: left; '
                      + ' cursor: pointer" alt="添加日课程项" onclick="return AddRow(this);" />'
                   + '<img id="imgdel' + seq + '" src="style/cancel.gif" title="删除日课程项" style="float: right; '
                       + 'cursor: pointer" alt="删除日课程项" onclick="return DeleteRow(this);" /></td>'
                           + '<td>'
                              + ' 案例</td>'
                            + '<td>'
                              + '<textarea id="taTCase' + seq + '" rows="1"  class="style6" ></textarea></td>'
                       + '</tr>'
                    + '</table>';
                $("#divkcsj").append(newtab);
                $("#imgadd" + (seq - 1)).hide("slow");
                $("#imgdel" + (seq - 1)).hide("slow");
            }
            function DeleteRow(obj) {
                var seq = parseInt(obj.id.substring(6));
                $("#imgadd" + (seq - 1)).show("slow");
                $("#imgdel" + (seq - 1)).show("slow");
                $("#kctb" + seq).remove();
            }
            function checksave(id,title) {
                var value = $("#"+id).val();
                if (value == null || value == "") {
                    alert(title); return false;
                }
                return true;
            }
            //选择对应的方法和ID
            var _fn, _id;
            function ShowDialog1(fn, id, src) {
                _fn = fn;
                _id = id;
                document.getElementById("EditUIWindow1").src = src;
                YAHOO.example.container.dialog1.show();
            }
            YAHOO.namespace("example.container");
            YAHOO.util.Event.onDOMReady(function () {
                var handleSubmit = function () {
                    var editwindow = document.getElementById("EditUIWindow1");
                    if (editwindow) {
                        editwindow.contentWindow.ChooseInfo();
                    }
                    YAHOO.example.container.dialog1.hide();
                };
                var handleCancel = function () {
                    this.cancel();
                };
                var handleSuccess = function (o) {
                    var response = o.responseText;
                    response = response.split("<!")[0];
                    document.getElementById("resp").innerHTML = response;
                };
                var handleFailure = function (o) {
                    alert("Submission failed: " + o.status);
                };
                YAHOO.example.container.dialog1 = new YAHOO.widget.Dialog("dialog1",
					            { width: "580px",
					                height: "450px",
					                fixedcenter: true,
					                visible: false,
					                draggable: true,
					                close: true,
					                autofillheight: "body",
					                constraintoviewport: true,
					                buttons: [{ text: "确定", handler: handleSubmit, isDefault: true },
								            { text: "取消", handler: handleCancel}]
					            });
                YAHOO.example.container.dialog1.callback = { success: handleSuccess, failure: handleFailure };
                YAHOO.example.container.dialog1.render();
            });
            function SaveBefore() {
                if ($(':radio[name=rdbwh]:checked').val() == null || $(':radio[name=rdbwh]:checked').val() == "") {
                    alert("请选择【文化程度】"); return false;
                }
                if ($(':radio[name=rdbxb]:checked').val() == null || $(':radio[name=rdbxb]:checked').val() == "") {
                    alert("请选择【性别结构】"); return false;
                }
                if ($(':radio[name=rdbzw]:checked').val() == null || $(':radio[name=rdbzw]:checked').val() == "") {
                    alert("请选择【职位结构】"); return false;
                }
                if (!checksave("txtPM", "请填写【内训助教】"))return false; 
                if (!checksave("txtAppraiseoneself", "请填写【自我评价】")) return false;
                if (!checksave("txtTrainBackground", "请填写【培训背景】")) return false;
                if (!checksave("txtPersonSum", "请填写【人数】")) return false;
                if (!checksave("txtFrontCommunicate", "请填写【训前沟通】")) return false;
                if (!checksave("txtExcellence", "请填写【优点】")) return false;
                if (!checksave("txtBlemish", "请填写【需改进地方】")) return false;
                if (!checksave("txtStudyGain", "请填写【内训心得】")) return false;
                var result="";
                var num = $(".tabck").length;   
                for (i = 1; i <= num; i++) {
                    result += i + "`" + $("#taSubject" + i).val().replace("`", "") + "`" + $("#taTContent" + i).val().replace("`", "") + "`" + $("#taVideo" + i).val().replace("`", "") + "`" + $("#taTCase" + i).val().replace("`", "");
                    if (i != num) {
                        result += '︾';
                    }
                }
                $("#tmpUser").val($("#txtPM").val());
                $("#hdfkcsj").val(result); 
            }

            $(document).ready(function () {
                $('#lblArrive').cld();
                var val = $("#hdfkcsj").val();

                if (val != null && val != "") {
                    var vals = val.split('︾');
                    for (i = 2; i <= vals.length; i++) {
                        CreatTable(i);
                    }
                    for (j = 0, max = (vals.length - 1); j <= max; j++) {
                        var vs = vals[j].split('`');
                        $("#taSubject" + (j + 1)).val(vs[1]);
                        $("#taTContent" + (j + 1)).val(vs[2]);
                        $("#taVideo" + (j + 1)).val(vs[3]);
                        $("#taTCase" + (j + 1)).val(vs[4]);
                    }
                }
                var val = '<%= GetStringFromQueryString("view","") %>'; // 屏蔽img按钮
                if (val == "check") {
                    $("img").each(function () {
                        $(this).attr("disabled", "disabled");
                    });
                }
            });

            
        </script>
</html>
